class City < ActiveRecord::Base
  def self.find_by_code(code)
    city = City.find(:first,:conditions=>["city_code=?",code])
    return city
  end
end
